package com.example.chapter02;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class UserActivity extends AppCompatActivity {
    TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user);
        initview();
    }
    void initview(){
        textView=findViewById(R.id.textView);
        Intent intent=getIntent();
        String username=intent.getStringExtra("username");
        textView.setText(username);
    }
}
